package com.zbzly.cloud.app.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class TestTimeTask {
    @Scheduled(cron = "* * * * * ?")
    public void nowTime() {
        log.info("now time is :{}", LocalDateTime.now());
    }
}
